package com.payment.mapper;

import com.payment.entity.common.UserOrderPackage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserOrderPackageMapper {

    int findPayIdByNotify(@Param("payId") String payId);

    Integer updateWeiXinPayRst(UserOrderPackage order);

    List<UserOrderPackage> queryOrderByPayIdAndAmount(@Param("payId") String payId, @Param("payAmount") String payAmount);

    void updateWeiXinIsNotify(UserOrderPackage user);

    int findOrderIdByNotify(@Param("orderId") String orderId);

    List<UserOrderPackage> queryOrderByOrderIdAndAmount(@Param("orderId") String orderId, @Param("payAmount") String paymentAmount);

    void updateCallbackPayRst(UserOrderPackage order);

    void updateCallbackIsNotify(UserOrderPackage user);

    List<UserOrderPackage> queryDeviceCodeByPayId(@Param("payId") String payId);

    void dataTransfer();

    void originalDataDelete();

    List<UserOrderPackage> getChannelResultList();

    void updateyIsPartnerNotity(UserOrderPackage re);

    List<UserOrderPackage> getPackageListByOutNo(@Param("payId") String out_trade_no);

    Integer updatePayRstForHist(UserOrderPackage order);

    List<UserOrderPackage> queryOrderList(@Param("payId") String payId);

    Integer insertOrderToOrderT(UserOrderPackage order);

    int findPayIdCount(@Param("payId") String payId);
}
